package stat;

public class ARatingDerivedStat extends DerivedStat {
    
    /**
     * constructor
     * @param st
     * @param toCache
     */
    public ARatingDerivedStat( StatType st, Stat... toCache) {
        super(st, toCache);
        compute();
    }
    
    /**
     * constructor
     * @param st
     * @param value
     * @param toCache
     */
    public ARatingDerivedStat( StatType st, int value, Stat... toCache) {
        super(st, value, toCache);
        //compute();
    }
    
    /**
     * compute the level based on hardiness
     */
    public void compute() {
        setValue(getFromCache(StatType.HAR)*2);
    }

}
